<script>
    // 是否登录
    global.isLogin = function(){
        try{
            var userID = uni.getStorageSync('userID');//用户id
            var srand  = uni.getStorageSync('srand');//这个是随机数
        }catch(e){}
        if(userID ==''||srand==''){
            return false;
        }else{
            return [userID,srand]
        }
    }
	export default {
        // 全局变量
        globalData: {  
           name:"uni-app"
        },  
		onLaunch: function() {
			console.log('App Launch')
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	/* 公共样式 */
	@import url("/common/css/common.css");
    @import url("/common/css/iconfont.css");

</style>
